f14d58052a5bbc2fb0e3bb50b62080c0cba6f229,portal-web/test/com/liferay/portalweb/portlet/announcements/AddImportantPriorityAnnouncementTest.java,AddImportantPriorityAnnouncementTest,testAddImportantPriorityAnnouncement,#,36

Before Change


			}

			try {
				if (selenium.isElementPresent("_84_title")) {
					break;
				}
			}

After Change


			catch (Exception e) {
			}

			Thread.sleep(1000);
		}

		selenium.click(RuntimeVariables.replace("//input[@value='Add Entry']"));
		selenium.waitForPageToLoad("30000");

		for (int second = 0;; second++) {
			if (second >= 60) {
				fail("timeout");
			}

			try {
				if (selenium.isVisible("_84_title")) {
					break;
				}
			}
			catch (Exception e) {
			}

			Thread.sleep(1000);
		}

		selenium.typeKeys("_84_title",
			RuntimeVariables.replace("Important Priorit Announcement"));
		selenium.type("_84_title",
			RuntimeVariables.replace("Important Priority Announcement"));
		selenium.type("_84_url", RuntimeVariables.replace("www.liferay.com"));
		selenium.type("_84_content",
			RuntimeVariables.replace(
				"Hi everyone. This is an important priority announcement."));
		selenium.select("_84_priority",
			RuntimeVariables.replace("label=Important"));
		selenium.click(RuntimeVariables.replace("//input[@value='Save']"));
		selenium.waitForPageToLoad("30000");

		for (int second = 0;; second++) {
			if (second >= 60) {
				fail("timeout");
			}

			try {
				if (selenium.isVisible("link=Entries")) {
					break;
				}
			}
			catch (Exception e) {
			}

			Thread.sleep(1000);
		}

		selenium.click(RuntimeVariables.replace("link=Entries"));
		selenium.waitForPageToLoad("30000");

		for (int second = 0;; second++) {
			if (second >= 60) {
				fail("timeout");
			}

			try {
				if (selenium.isVisible("link=Important Priority Announcement")) {
					break;
				}
			}
			catch (Exception e) {
			}

			Thread.sleep(1000);
		}

		assertTrue(selenium.isElementPresent(